package com.tz.farmer.so;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProductInfoSo implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "产品名称")
    private String pName;
    @ApiModelProperty(value = "重量")
    private String weight;
    @ApiModelProperty(value = "添加时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "采摘日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date pickTime;
    @ApiModelProperty(value = "主题信息id")
    private Integer leadId;



    private Integer currentPage;
    private Integer pageSize;
    private String startTime;
    private String endTime;
    private String businessName;
    private String userAccount;

    private  Integer pInfoId;
    private List<OperateInfoSo> listOperate; //种植信息
    private List<TradeInfoSo> listTrade; //交易信息

    //检测信息
    private DetectionInfoSo detection; //检测信息

}
